package com.cz.zslu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 用户菜单权限表
 * </p>
 *
 * @author Bruce
 * @since 2019-08-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_menu")
public class UserMenu extends SuperEntity<UserMenu> {

    private static final long serialVersionUID = 1L;


    /**
     * 是否有效 0 显示 1 不显示
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    private Integer status = 0;

    /**
     * 菜单id
     */
    @ApiModelProperty("菜单id")
    @TableField("menu_ids")
    private String menuIds;

    /**
     * userId
     */
    @ApiModelProperty("userId")
    @TableField("user_id")
    private Long userId;


    /**
     * useName
     */
    @ApiModelProperty("useName")
    @TableField("user_name")
    private String useName;


    @ApiModelProperty("菜单名称")
    @TableField(exist = false)
    private List<String> menuNames;




}
